package com.mikufufu.blog.mapper;

import com.mikufufu.blog.model.entity.Permission;
import com.mikufufu.blog.model.vo.admin.PermissionVO;
import com.mikufufu.blog.model.vo.admin.PermissionRoleListVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PermissionMapper extends BaseMapper<Permission> {

    List<Permission> getPermission(@Param("roleId") Integer roleId);

    List<PermissionRoleListVO> getPermissionRoleList();

    long setAllPermission(@Param("roleId") Integer roleId);

    List<PermissionVO> getPermissionByRole(@Param("roleId") Integer roleId);
}